import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
const api = apiCreator();
export default function OperatePlatform() {
  return {
    // 查询用户常用功能
    queryCuFunctionsByCreator: (query) => api.get(`${config.interfaces.type5}portfolio-server/authentication/queryCuFunctionsByCreator`, query),
    // 编辑常用功能接口
    updateOrAddCuFunctions: (query) => api.post(`${config.interfaces.type5}portfolio-server/authentication/updateOrAddCuFunctions`, query),
    // 获取行权提醒
    queryExerciseList: (query) => api.post(`${config.interfaces.type1}bondsSoldBack/queryExerciseList`, query),
    // 可转债赎回提醒
    queryConvertibleBondList: (query) => api.post(`${config.interfaces.type1}bondsSoldBack/queryConvertibleBondList`, query),
    // 产品到期提醒
    queryProInfo: (query) => api.get(`${config.interfaces.type5}portfolio-server/maatProduct/getProductList`, query),
    // 当日债回售提醒
    resaleList: (query) => api.post(`${config.interfaces.type1}bondsSoldBack/queryExerciseList`, query),
    // 查询债券价格异常提醒
    priceAnomaliesList: (query) => api.post(`${config.interfaces.type1}bondRemind/queryBondPriceList`, query),

    // 获取权限--未使用
    queryPermission: (query) => api.get(`${config.interfaces.type1}currentUserDepts`, query),
    // 获取上个工作日--未使用
    findPreTranDt: (query) => api.get(`${config.interfaces.type1}bondOverview/findPreTranDt`, query),
    // 投资公告--未使用
    queryLocalMsgListALL: (query) => api.post(`${config.interfaces.type1}localMsg/queryLocalMsgListALL`, query),
    // 负面舆情--未使用--主体舆情
    queryNegativeNews: (query) => api.post(`${config.interfaces.type1}riskFeelings/queryNew`, query),
    // 公司公告--未使用--主体舆情
    queryCompanyNotice: (query) => api.post(`${config.interfaces.type1}riskFeelings/queryAffiche`, query),
    // 今日会议--未使用
    getTodayMeet: (query) => api.get(`${config.interfaces.type1}roadshow/getTodayMeet`, query),
    // 通知公告--组件未使用
    queryNoticeAnnounce: (query) => api.post(`${config.interfaces.type1}localMsg/queryLocalMsgByType`, query),
  };
}
